package com.red.mapper;

import com.red.pojo.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrderMapper {

    int insertOrder(Order order);

    Order selectOrderByID(@Param("orderId") int orderId);

    List<Order> selectOrderList(@Param("order") Order order, @Param("offset") int offset, @Param("size") int size);

    List<Map<String, Object>> selectOrderListV2(@Param("userId") int userId);

    Order selectOrderByHouseId(@Param("houseId") int houseId);

    int selectOrderCount(Order order);

    int deleteOrderByID(@Param("orderId") int orderId);

    int updateOrder(Order order);

}
